package com.theaf.core.repo.base;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author:songwenke
 * @Description:条件基类
 * @Date:create in 17:06 2017/12/12
 * @Modified By:
 **/
@Data
public class Condition implements Serializable{
    /**
     * 页码(从1开始）
     */
    @ApiParam(example = "1")
    private int page=1;
    /**
     * 页记录数
     */
    @ApiParam(example = "10")
    private int size=10;
    /**
     * 排序
     */
    Map<String,Boolean> orders=new HashMap();

}
